package math;

/**
 * TODO
 *
 * @author chenwb25485
 * @version V2.1
 * @since 2020/11/22 18:07
 */
public class MathQuestion {
    public static void main(String[] args) {
        int zuo;
        int hao;
        int shi;

        for (int i = 0; i < 10; i++) {
            zuo = i;
            for (int j = 0; j < 10; j++) {
                hao = j;
                for (int k = 0; k < 10; k++) {
                    shi = k;
                    if (hao * 100 + shi * 10 + hao + 100 + zuo * 10 + hao == 1000 + zuo * 100 + hao * 10 + shi) {
                        if (i != j && i != k) {
                            System.out.println("zuo=" + i + "hao=" + j + "shi=" + k);
                        }
                    }
                }
            }
        }
    }
}
